import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  strict:true,//严格模式
  state: {
    name:'hello vuex',
    userState: {},
  },
  mutations: {
    setUserState(state, value) {
      console.log('value', value)
      state.userState = value
    },
  },
  actions: {
  },
  modules: {
  }
})
